package BlogTest.Polymorphic;

import java.awt.font.TextAttribute;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zhongyisheng
 * Date: 2024-07-03
 * Time: 22:14
 */
public class Cat extends Animal {


    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {

        System.out.println(this.name + " 吃猫粮");
    }
}
